#ifndef SCENE_H
#define SCENE_H

#include <QGraphicsScene>
#include "tankmodel.h"
#include "terrain.h"

class Scene : public QGraphicsScene {
Q_OBJECT
public:
    Scene();

protected:
    void drawBackground(QPainter* painter, const QRectF& rect);
    void drawForeground(QPainter* painter, const QRectF& rect);

    void keyPressEvent(QKeyEvent *event);

    Terrain terrain_;
    TankModel player_;
    Opponent opponent_;

private:
    static const int sceneLength_ = 100;
    static const int sceneHeight_ = 100;
    int cameraPosX_;
    int cameraPosY_;
};

#endif // SCENE_H
